<?php

class Application_Form_AddLocataire extends Zend_Form 
{
	public function init()
	{
		// Set the method for the display form to POST
		$this->setMethod('post')
			->setName('ajoutUtilisateur');
		
		$elt = new Zend_Form_Element_Text('nomCourt');
		$elt->setLabel('Nom court');
		$this->addElement($elt);
	
		$elt = new Zend_Form_Element_Select('civilite');
		$elt->setLabel('Civilite')
			->setMultiOptions(array('Mademoiselle','Madame','Monsieur'));
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('nom');
		$elt->setLabel('Nom');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('prenom');
		$elt->setLabel('Prenom');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('telephone');
		$elt->setLabel('Telephone');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('portable');
		$elt->setLabel('Portable');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('email');
		$elt->setLabel('Email');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('adresse');
		$elt->setLabel('Adresse');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('cp');
		$elt->setLabel('Code postal');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('ville');
		$elt->setLabel('Ville');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Text('note');
		$elt->setLabel('Note');
		$this->addElement($elt);
		
		$elt = new Zend_Form_Element_Submit('ajouter');
		$elt->setLabel('Ajouter');
		$this->addElement($elt);
	}
}

?>